package com.donica.wamstest.entity;

import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;

public class TaskVO {
	private String id;

	private String task_code;
	
	private String task_level;

	private String object_code;

	private String status;

	private String errcode;

	private String errmsg;

	private String uri;

	private TaskDataVO data;

	private String process;

	private long total_size;

	private long completed_size;

	private long frag_size;

	private long thread;
	
	private String creator;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
	private Timestamp create_time;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
	private Timestamp update_time;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTask_code() {
		return task_code;
	}

	public void setTask_code(String task_code) {
		this.task_code = task_code;
	}

	
	public String getTask_level() {
		return task_level;
	}

	public void setTask_level(String task_level) {
		this.task_level = task_level;
	}

	public String getObject_code() {
		return object_code;
	}

	public void setObject_code(String object_code) {
		this.object_code = object_code;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getErrcode() {
		return errcode;
	}

	public void setErrcode(String errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	
	public TaskDataVO getData() {
		return data;
	}

	public void setData(TaskDataVO data) {
		this.data = data;
	}

	public String getProcess() {
		return process;
	}

	public void setProcess(String process) {
		this.process = process;
	}

	public long getTotal_size() {
		return total_size;
	}

	public void setTotal_size(long total_size) {
		this.total_size = total_size;
	}

	public long getCompleted_size() {
		return completed_size;
	}

	public void setCompleted_size(long completed_size) {
		this.completed_size = completed_size;
	}

	public long getFrag_size() {
		return frag_size;
	}

	public void setFrag_size(long frag_size) {
		this.frag_size = frag_size;
	}

	public long getThread() {
		return thread;
	}

	public void setThread(long thread) {
		this.thread = thread;
	}
	
	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Timestamp getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}

	public Timestamp getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Timestamp update_time) {
		this.update_time = update_time;
	}

	public void initNullItem() {
		if (status == null) {
			status = "";
		}
		if (errcode == null) {
			errcode = "";
		}
		if (errmsg == null) {
			errmsg = "";
		}
		if (uri == null) {
			uri = "";
		}
		if (process == null) {
			process = "";
		}
		/*
		 * if(total_size == null) { total_size = ""; } if(completed_size == null) {
		 * completed_size = ""; } if(frag_size == null) { frag_size = ""; } if(thread ==
		 * null) { thread = ""; }
		 */
	}
}
